#pragma once
#include "common.h"
typedef int (*SexyThreadFunction)(void * Context);

class SexyThread
{
public:
	SexyThread(SexyThreadFunction func);
	virtual ~SexyThread(void);

	 int Start( void * Context );
	 int Wait( unsigned long timeout );

	 static void Idle(unsigned int t);
private:
	void* m_threadHandle;
	SexyThreadFunction m_threadFunc;
};
